﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Sharp.DataTransferObject;

namespace Sharp.Web.Models
{
    /// <summary>
    /// 岗位管理
    /// </summary>
    public partial class JobModel
    {
       
        
        public JobModel()
        {
            Employees = new List<EmployeeDTO>();
        }

        /// <summary>
        /// 主键Id
        /// </summary>
        /// <value>主键Id</value>
        [HiddenInput]
        public Guid Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        /// <value>标题</value>
        [Display(Name = "名称")]
        public string Title { get; set; }
        /// <summary>
        /// 归属
        /// </summary>
        /// <value>父Id</value>
        [Display(Name = "归属")]
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        /// <value>排序的值</value>
        public int? OrderIndex { get; set; }
        /// <summary>
        /// 职级
        /// </summary>
        [Display(Name = "职级")]
        public MasterDataDTO Grade { get; set; }

        /// <summary>
        /// 入职资质
        /// </summary>
        [Display(Name = "入职资质")]
        public string Qualifications { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        public string Remark { get; set; }
 
 

        /// <summary>
        /// 这个岗位包含的员工
        /// </summary>
        public virtual ICollection<EmployeeDTO> Employees { get; set; }
    }
}